<!doctype html>
<html>
    <head>
    <meta charset="utf-8" />
    <title>Demo</title>
    </head>
    <body>
    <a href="http://jquery.com/">jQuery</a>
    <script src="js/jquery-1.10.2.min.js"></script>
    <script>
    $( document ).ready(function() {
        $( "a" ).click(function( event ) {
            alert( "Thanks for visiting!" );
            event.preventDefault();
        });
    });
    </script>
    </body>
</html>
